﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows.Forms;

namespace Migraine
{
    class ControlAcess
    {
        public static void ShowConTrol(Form frm, UserControl control, String GroupBoxName)
        {
		//
            Control a = frm.Controls.Find(GroupBoxName, true).FirstOrDefault();
            GroupBox panl = (GroupBox)a;
            panl.Controls.Clear();
            a.Controls.Add(control);
        }
    }
}
